﻿// ===============================================================================
// Project Name        :    Gfw.Web.Models.Account
// Project Description :    
// ===============================================================================
// Class Name          :    TransferQueryModel
// Namespace:          :    Gfw.Web.Models.Account
// Class Version       :    v1.0.0.0
// Class Description   :    
// CLR Version:        :    4.0.30319.17626
//Author               :    lif
// Machine             :    ADICO-PC
// Create Time         :    2012/7/8 17:24:13
// Update Time         :    2012/7/8 17:24:13
// ===============================================================================
// Copyright © lif 2012 . All rights reserved.
// ===============================================================================
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Gfw.Web.Models.Account
{
    /// <summary>
    /// 转账查询
    /// </summary>
   public class TransferQueryModel
    {
       /// <summary>
       /// 对方帐号
       /// </summary>
       [Display(Name="对方帐号")]
       public string ToUserLoginName { get; set; }

       /// <summary>
       /// 转入金额
       /// </summary>
       [Display(Name = "转入金额")]
       [DataType(DataType.Currency)]
       public decimal Income { get; set; }

       /// <summary>
       /// 转出金额
       /// </summary>
       [Display(Name = "转出金额")]
       [DataType(DataType.Currency)]       
       public decimal Outlay { get; set; }

       /// <summary>
       /// 转账日期
       /// </summary>
       [Display(Name = "转账日期")]
       public DateTime? TradeDate { get; set; }

       /// <summary>
       /// 转账方式
       /// </summary>
       [Display(Name = "转账方式")]
       public int TradePattern { get; set; }



       #region 增加属性：用于查询会员详细X币信息

       /// <summary>
       /// 类型
       /// </summary>
       [DataType(DataType.Text)]
       [Display(Name = "类型")]
       public string TradeType { get; set; }

       /// <summary>
       /// 账户余额
       /// </summary>
       [DataType(DataType.Currency)]
       [Display(Name = "账户余额")]
       public decimal Balance { get; set; }

       /// <summary>
       /// 摘要
       /// </summary>
       [DataType(DataType.Text)]
       [Display(Name = "摘要")]
       public string TradeAbstract { get; set; }

        #endregion
    }

    public class TransferQueryViewModel
    {
        [Display(Name="转账日期")]
        public DateTime? Start { get; set; }

        [Display(Name = "至")]
        public DateTime? End { get; set; }

        public IList<TransferQueryModel> Results { get; set; }
    }
}
